import request from '@/utils/request'

// 查询会员收益数据列表
export function listAppCustomerIncome(query) {
    return request({
        url: '/customer/v1/app/customer/income/page',
        method: 'post',
        data: query
    })
}

// 查询会员收益数据详细
export function getAppCustomerIncome(id, lang) {
    return request({
        url: '/customer/v1/app/customer/income?id=' + id + '&lang=' + lang,
        method: 'get'
    })
}

// 新增会员收益数据
export function addAppCustomerIncome(data) {
    return request({
        url: '/customer/v1/app/customer/income',
        method: 'post',
        data: data
    })
}

// 修改会员收益数据
export function updateAppCustomerIncome(data) {
    return request({
        url: '/customer/v1/app/customer/income',
        method: 'put',
        data: data
    })
}

// 删除会员收益数据
export function delAppCustomerIncome(id) {
    return request({
        url: '/customer/v1/app/customer/income/' + id,
        method: 'delete'
    })
}
